package com.lbz.common;

/**
 * @Author 林必昭
 * @Date 2019/6/14 13:05
 */

public enum ResponseCode {

    SUCCESS(0,"SUCCESS"),
    ERROR(1,"ERROR"),
    ILLEGAL_ARGUMENT(3,"参数错误"),
    NEED_LOGIN(10,"用户未登录，请先登录");

    private final int code;
    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
